package com.xinqi.modules.course.clazz.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.service.impl.BaseServiceImpl;
import com.xinqi.modules.course.clazz.domain.ClassParentGroupStudentEntity;
import com.xinqi.modules.course.clazz.mapper.ClassParentGroupStudentMapper;
import com.xinqi.modules.course.clazz.service.ClassParentGroupStudentService;
import com.xinqi.modules.course.clazz.dto.req.ClassParentGroupStudentQueryDTO;
import com.xinqi.modules.course.clazz.dto.rsp.ClassParentGroupStudentResultDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author：yyzhen
 * @Package：com.xinqi.modules.course.clazz.service.impl
 * @Project：XingqiClass-Cloud-Plus
 * @name：ClassParentGroupStudentServiceImpl
 * @Date：2023/5/25 22:29
 * @Filename：ClassParentGroupStudentServiceImpl
 */
@Service("classParentGroupStudentService")
@RequiredArgsConstructor
public class ClassParentGroupStudentServiceImpl extends BaseServiceImpl<ClassParentGroupStudentMapper, ClassParentGroupStudentEntity> implements ClassParentGroupStudentService {
    @Override
    public Page<ClassParentGroupStudentResultDTO> findPage(Page<Object> page, ClassParentGroupStudentQueryDTO query) {
        return this.baseMapper.findPage(page, query);
    }

    @Override
    public List<ClassParentGroupStudentResultDTO> findList(ClassParentGroupStudentQueryDTO query) {
        return this.baseMapper.findList(query);
    }
}
